home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
misc
/
WHDLoad_dev.lha
/
WHDLoad
/
Patcher1.05dev.lha
/
Patcher1.05
/
PARAMQTX
/
parambane.asm
< prev
next >
Wrap
Assembly Source File
|
1997-05-01
|
2KB
|
69 lines
;This is a simple example with the altering of only 1 file.
INCDIR ASM-ONE:INCLUDE2.0/
;include patcher-include
INCLUDE OWN/Patcher.I
HP MOVEQ.L #20,D0 ;do NOT use these 4 bytes!!!
RTS
DC.L TAB ;pointer to the tagtable
DC.B 'PTCH' ;modulerecognition
DC.B '$VER:BANE_1.0',0 ;just a versionstring of the parameter
EVEN ;skip to next even adress
TAB DC.L PCH_FILECOUNT,1 ;1 cycle
DC.L PCH_ADAPTOR,ADNAME ;pointer on the adaptor
DC.L PCH_DISKNAME,DISKNAMEARRAY ;pointer on the disknamearray
DC.L PCH_FILENAME,FILENAMEARRAY ;pointer on the filenamearray
DC.L PCH_CHANGES,CHANGESARRAY ;pointer on the changestablesarray
DC.L PCH_NAME,PARAMNAME ;parametername
DC.L PCH_MINVERSION,VERSNAME ;minimum version of THE PATCHER
DC.L PCH_DATALENGTH,LENGTHTABLE ;array of the filelength
DC.L 0
;name of adaptor
ADNAME DC.B 'Adapted by Egon.',0
EVEN
;name of the parameter
PARAMNAME DC.B 'Wizardry VI - Bane of the Cosmic Forge',0
EVEN
;minimum version of the deprotector required - only as example included,
;if you need V1.00 its obsolete
VERSNAME DC.B 'V1.00' ;MAY NOT CONTAIN HEADING ZEROES
EVEN ;MUST CONTAIN 2 NUMBERS AFTER POINT
;array of the disknamespointer - one for each cycle
DISKNAMEARRAY DC.L DISK1NAME
;diskname(s) itself
DISK1NAME DC.B 'BANE_A',0
EVEN
;array of the filenamepointer - one for each cycle
FILENAMEARRAY DC.L FILE1NAME
;filename(s) itself
FILE1NAME DC.B 'BANE',0
EVEN
;array of the length(s) of the files - mostly for the check of the correct
;gameversion only
LENGTHTABLE DC.L 354372
;array of the pointer(s) to the changestable(s)
CHANGESARRAY DC.L CHANGE1
;changestable(s) itself
CHANGE1
DC.B $00,$80,$6D,$FE,$04,$2F,$08,$41
DC.B $ED,$80,$6E,$03,$17,$D2,$10,$E8
DC.B $FF,$D8,$66,$FA,$41,$EC,$C5,$02
DC.B $29,$48,$B8,$7E,$20,$5F,$4E,$71
DC.B $4E,$71,$4E,$71,$00,$40,$00,$00
EVEN